package cn.fl.product.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.CollectionUtils;
import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.product.service.ISplBscExtInfoService;
import cn.fl.product.transform.SplBscExtInfoVOTransform;
import cn.fl.product.vo.SplBscExtInfoVO;
import fl.spl.facade.spl.dto.SplBscExtInfoDTO;

/**
 * @Description: 供应商基础扩展信息表 客户端服务层接口实现
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 */
@Service
public class SplBscExtInfoServiceImpl implements ISplBscExtInfoService {

	/**
	 * TODO 自定义 API 暴露服务
	 */
	//@Autowired
	//private I自定义ApiService 自定义ApiService;

	@Override
	public SplBscExtInfoVO selectById(Long id) throws BaseException{
		if(StringUtils.isEmpty(id)){
			return null;
		}
		//TODO 业务逻辑
		SplBscExtInfoDTO dto = null;//this.自定义ApiService.selectById(id);
		return SplBscExtInfoVOTransform.toVO(dto);
	}

	@Override
	public Long add(SplBscExtInfoVO entity) throws BaseException{
		if(null == entity){
			return null;
		}
		//return this.splBscExtInfoApiService.add(SplBscExtInfoVOTransform.toDTO(entity));
		//TODO 业务逻辑
		return null;
	}

	@Override
	public boolean removeById(Long id) throws BaseException{
		if(StringUtils.isEmpty(id)){
			return false;
		}
		//return this.splBscExtInfoApiService.removeById(id);
		//TODO 业务逻辑
		return false;
	}
	
	/**
     * 删除
     * @param ids
     * @return
     */
	@Override
    public boolean removeByIds(List<Long> ids)throws BaseException{
    	if(CollectionUtils.isEmpty(ids)){
			return false;
		};
		return false;
    }

	@Override
	public boolean modify(SplBscExtInfoVO entity) throws BaseException{
		if(null == entity){
			return false;
		}
		//return this.splBscExtInfoApiService.modify(SplBscExtInfoVOTransform.toDTO(entity));
		//TODO 业务逻辑
		return false;
	}

	@Override
	public Pager searchListPage(Pager page) throws BaseException{
		if(null == page){
			page = new Pager();
		}
		//return this.splBscExtInfoApiService.searchListPage(page);
		//TODO 业务逻辑
		return null;
	}
}
